import request from '@/utils/request'

// 查询加工单管理列表
export function listProcessRecord(query) {
  return request({
    url: '/storage/processRecord/list',
    method: 'get',
    params: query
  })
}

// 查询加工单管理详细
export function getProcessRecord(processId) {
  return request({
    url: '/storage/processRecord/' + processId,
    method: 'get'
  })
}

// 新增加工单管理
export function addProcessRecord(data) {
  return request({
    url: '/storage/processRecord',
    method: 'post',
    data: data
  })
}

// 修改加工单管理
export function updateProcessRecord(data) {
  return request({
    url: '/storage/processRecord',
    method: 'put',
    data: data
  })
}

// 删除加工单管理
export function delProcessRecord(processId) {
  return request({
    url: '/storage/processRecord/' + processId,
    method: 'delete'
  })
}
